#include<cstdio>
int is_little_endian(){
    int x = 16;
    unsigned char pointer = x;
    char str[3];
    sprintf(str,"%.2x",pointer);
    if(str[0] == '1')
	   return 1;
    else
	   return 0;

}

//int main(void){

//    if(is_little_endian())
//        printf("is_little_endian\n");
//    else
//	printf("is_big_endian\n");

//    return 0;
//}
